package com.hongyue.dey04;

import java.io.*;

public class Demo {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("C:\\Users\\86182\\Desktop\\笔记.txt"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("dey11\\src\\com\\hongyue\\dey04\\aaa.txt"));
        byte[] bytes = new byte[1024];
        for (int i; (i = bis.read(bytes)) != -1; ) {
            bos.write(bytes, 0, i);
            bos.flush();
        }
        bis.close();
        bos.close();
    }
}
